import findMusic from '@/views/findMusic'
import login from '@/views/login'
import myMusic from '@/views/myMusic'
import attention from '@/views/attention'
import shopping from '@/views/shopping'
import musician from '@/views/musician'
import downloadClient from '@/views/downloadClient'
import framerCenter from '@/views/framerCenter'
import notFound from '@/views/notFound'
import recommend from '@/views/findMusic/recommend'
import rankingList from '@/views/findMusic/rankingList'
import newDisc from '@/views/findMusic/newDisc'
import singer from '@/views/findMusic/singer'
import anchorStation from '@/views/findMusic/anchorStation'
import songList from '@/views/findMusic/songList'


const routes = [
    {
        path: '/findMusic',
        name : 'findMusic',
        component: findMusic,
        children : [
            {
                path : 'recommend',
                name : 'recommend',
                component : recommend
            },
            {
                path : 'rankingList',
                name : 'rankingList',
                component : rankingList
            },
            {
                path : 'newDisc',
                name : 'newDisc',
                component : newDisc
            },
            {
                path : 'singer',
                name : 'singer',
                component : singer
            },
            {
                path : 'anchorStation',
                name : 'anchorStation',
                component : anchorStation
            },
            {
                path : 'songList',
                name : 'songList',
                component : songList
            }
        ],
        redirect : '/findMusic/recommend'
    },
    {
        path: '/login',
        name : 'login',
        component:login
    },
    {
        path:'/myMusic',
        name : 'myMusic',
        component : myMusic
    },
    {
       path : '/attention',
       name : 'attention',
       component :attention
    },
    {
        path:'/shopping',
        name : 'shopping',
        component: shopping
    },
    {
        path:'/musician',
        name : 'musician',
        component: musician
    },
    {
        path : '/downloadClient',
        name : 'downloadClient',
        component: downloadClient
    },
    {
        path : '/framerCenter',
        name : 'framerCenter',
        component: framerCenter
    },
    {
        path:'/',
        component: findMusic,
        redirect : '/findMusic'
    },
    {
        path : '*',
        component : notFound
    }
]

export default routes